package org.kealinghornets.nxtdroid;

import org.kealinghornets.nxtdroid.NXT.NXTThread;

/**
 * Created by chuah on 11/14/14.
 */
public class MyOffensivePlay5 extends NXTThread {

    public MyOffensivePlay5() {
        setNXTThreadName("Offensive play 5 (Slant play) ");
    }


    public void run () {

        runMotor(PORT_A, 96);
        runMotor(PORT_B, 100);
        wait(3000);
        stopMotor(PORT_A);
        stopMotor(PORT_B);
        wait(30);
        runMotor(PORT_B);
        wait(550);
        stopMotor(PORT_A);
        stopMotor(PORT_B);
        wait(30);
        runMotor(PORT_A, 96);
        runMotor(PORT_B, 100);
        wait(3000);
        stopMotor(PORT_A);
        stopMotor(PORT_B);
        wait(30);
        runMotor(PORT_A);
        wait(700);
        stopMotor(PORT_A);
        stopMotor(PORT_B);
        wait(30);
        runMotor(PORT_A);
        runMotor(PORT_B);
        wait(5000);
        stopMotor(PORT_A);
        stopMotor(PORT_B);
        reset();

    }
}
